package com.fansl.allround.auth.provider.social.weibo.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author fansl
 * @Description: weibo社交自动配置类
 * @date 2019/10/15 18:54
 */
@Configuration
@ConditionalOnProperty(prefix = "allround.security.social.weibo", name = "app-id")
@ConfigurationProperties(prefix = "allround.security.social.weibo")
@Data
public class WeiboOauthConfig {
    /**
     * 供应商id
     */
    private String providerId = "weibo";
    /**
     * 应用id
     */
    private String appId;
    /**
     * 应用密匙
     */
    private String appSecret;
    /**
     * 重定向地址
     */
    private String redirectUri = "http://127.0.0.1:8080/#/authredirect";
}
